package com.zy.cat.entity.game;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫水果机，闯关纪录
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_game_fruit_draw_history", indexes = {
		@Index(name = "fpid", columnList = "fpid"),
		@Index(name = "pid", columnList = "pid"),
		@Index(name = "gtype", columnList = "gtype"),
		@Index(name = "gstatus", columnList = "gstatus"),
		@Index(name = "dstatus", columnList = "dstatus"),
		@Index(name = "ctime", columnList = "ctime") })
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫水果机，闯关纪录")
public class FruitDrawHistory {
	
	@Id
	@Column(columnDefinition = "VARCHAR(25) NOT NULL  COMMENT '创建时间[9趣猫大转盘中奖历史实体类]'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56:666")
	private String ctime;
	
	@Column(columnDefinition = "VARCHAR(32) NOT NULL COMMENT '奖品ID'")
	@ApiModelProperty(value = "奖品ID", example = "fe53d6a4fa29641")
	private String fpid;

	@Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '用户账号ID'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '关卡（1、2、3）'")
	@ApiModelProperty(value = "关卡（1、2、3）", example = "0")
	private int gtype;
		
	@Column(columnDefinition = "BIGINT(10) DEFAULT '0' COMMENT '关卡奖励(现金豆/肥料数)'")
	@ApiModelProperty(value = "关卡奖励(现金豆/肥料数)", example = "100")
	private long dcount;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '关卡状态，（0.闯关失败、1.闯关成功）'")
	@ApiModelProperty(value = "关卡状态，（0.闯关失败、1.闯关成功）", example = "1")
	private int gstatus;
	
	@Column(columnDefinition = "INT(2) DEFAULT '1' COMMENT '中奖状态，（-1：不结算、0.结算中、1.已结算）'")
	@ApiModelProperty(value = "中奖状态，（-1：不结算、0.结算中、1.已结算）", example = "1")
	private int dstatus;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 10:10:10")
	private String ltime;
	
	@Column(columnDefinition = "VARCHAR(200) DEFAULT '-' COMMENT '备注'")
	@ApiModelProperty(value = "备注", example = "备注")
	private String info = "-";
 

}
